﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace Company.Shell.Dialogs
{
    /// <summary>
    /// 弹窗服务接口
    /// </summary>
    public interface IDialogService
    {
        /// <summary>
        /// 显示消息对话框,调用弹窗时，如果传入了view或viewModel，则使用传入的view或viewModel，否则使用默认的
        /// </summary>
        /// <param name="message">消息内容</param>
        Task<DialogResult<TResult>> ShowDialogAsync<TView, TViewModel, TResult>(TView? view = null, TViewModel? viewModel = null)
            where TView : UserControl, new()
            where TViewModel : class, new();




    }
}
